<div class="indexWidth">
    <button type="button" class="btn btn-info mainButtonRight"><a
            href="javascript:takeout.openMenu('${ctxPath!}/category/list?parentid=${parentid!}', null)" class="mianAcolor">返回</a></button>

    <div class="sectionTitle">
        类型设置
        <hr>
    </div>
<form id="categoryForm" action="${ctxPath!}/category/save?parentid=${parentid!}" method="POST" class="form-horizontal"  enctype="multipart/form-data">
    <input type="hidden" id="id" name="category.id" class="mainSetWidth" value="${category.id!}" placeholder="显示" />

    <div class="articleFormLabel">
        <label class="mainSetConsistentWidth">选择类别：</label>
        <#dictTag val="${category.parentid!}" type="select" style="margin-left:5px;" group="news"  pname="category.parentid" defaultNumber="1"></#dictTag>
    </div>

    <div class="articleFormLabel">
        <label class="mainSetConsistentWidth">打开小程序：</label>
        <#dictTag val="${category.isopen!}" type="select" group="yes_no"  pname="category.isopen" defaultNumber="1"></#dictTag>
    </div>

    <div class="articleFormLabel">
        <label class="mainSetConsistentWidth">名称：</label>
        <input type="text" id="According" name="category.name" class="mainSetWidth" value="${category.name!}" placeholder="" />
    </div>

    <div class="articleFormLabel">
        <label class="mainSetConsistentWidth">APPID：</label>
        <input type="text" name="category.wxappid" class="mainSetWidth" value="${category.wxappid!}" placeholder="" />
    </div>

    <div class="articleFormLabel">
        <label class="mainSetConsistentWidth">排序：</label>
        <input type="text" name="category.corder" class="mainSetWidth" value="${category.corder!}" placeholder="越大越靠前" />
    </div>
    <div class="articleFormLabel">
        <label class="mainSetConsistentWidth">APPURL：</label>
        <input type="text" name="category.wxppurl" class="mainSetWidth" value="${category.wxppurl!}" placeholder="" />
    </div>

    <!--
        <div class="articleFormLabel">
            <label class="mainSetConsistentWidth">排序：</label>
            <input type="text" name="category.corder" class="mainSetWidth" value="${category.corder!}" placeholder="" />
        </div>

        <!--
        <div class="articleFormLabel">
            <label class="mainSetConsistentWidth">是否上线：</label>
            <#dictTag val="${category.online!}" type="radio" style="margin-left:5px;" group="add_down"  pname="category.online" defaultNumber="1"></#dictTag>
        </div>

        <div class="articleFormLabel" style="display: flex;">
            <label class="mainSetConsistentWidth">图片地址：</label>
            <input type="file" id="grouping" name="category.icon" class="mainSetWidth" value="${category.icon!}" placeholder="分组">
            <a href="${category.icon!}">查看图片</a>
        </div>
    -->
    <div class="form-group">
        <button style="margin-left: 100px;width:95px;" class="btn btn-info articleFormButton" type="button"
                onclick="takeout.ajaxFormMainPanel('categoryForm')" >保存</button>
    </div>

</form>